
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: TransactionChecker.java 262 2010-01-06 20:05:16Z archie.cobbs $
 */

package org.dellroad.sidekar.aop;

import org.dellroad.sidekar.SidekarEnvironment;
import org.springframework.beans.factory.annotation.Autowired;

public class TransactionChecker extends ActionChecker {

    @Autowired
    private SidekarEnvironment env;

    // Verify we are executing within a call to performTransaction()
    public void executeVoid() {
        this.env.getCurrentTransaction(true);
        super.executeVoid();
    }
}

